#include "network.h"
#include <QTcpSocket>
#include <QTcpServer>
#include "clientHandler.h"


Network *Network::ntwkInstance_p = NULL;

Network *Network::networkInstance()
{
    if(!ntwkInstance_p)
        ntwkInstance_p = new Network;
    return ntwkInstance_p;
}

Network::Network()
{
}

void Network::createConnection()
{

    tcpSocket.connectToHost("71.57.13.67", 5222);
//    tcpSocket.connectToHost("71.201.37.171", 5222);
//    tcpSocket.connectToHost("127.0.0.1", 5222);
    tcpSocket.waitForConnected();
}


